package com.vae.goods.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vae.goods.mapper.SkuAttributeMapper;
import com.vae.goods.service.SkuAttributeService;
import com.vae.mall.goods.api.entity.SkuAttribute;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * sku属性表(SkuAttribute)表服务实现类
 */
@Service
public class SkuAttributeServiceImpl extends ServiceImpl<SkuAttributeMapper, SkuAttribute> implements SkuAttributeService {
    /**
     * 根据分类id查询属性列表
     * @param id
     * @return
     */
    @Override
    public List<SkuAttribute> queryList(Integer id) {
        return this.baseMapper.queryByCategoryId(id);
    }
}